package com.neuedu.corejava.ch10test;

public class Students {
	private int sno;
	private String name;
	private char sex;
	private int age;
	
	public Students() {
		super();
	}
	public Students(int sno, String name, char sex, int age) {
		super();
		this.sno = sno;
		this.name = name;
		this.sex = sex;
		this.age = age;
	}
	public int getSno() {
		return sno;
	}
	public void setSno(int sno) {
		this.sno = sno;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public char getSex() {
		return sex;
	}
	public void setSex(char sex) {
		this.sex = sex;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	@Override
	public String toString() {
		return "Students [sno=" + sno + ", name=" + name + ", sex=" + sex + ", age=" + age + "]";
	}
}
